Click or drag to resize

Response Class

The Response class represents SIP response message generated by a client or a SIP server to reply to a request generated by the client. A response may contain additional header fields containing information needed by the client or it may be a simple acknowledgment to prevent retransmissions of the request by the client.
Inheritance Hierarchy
SystemObject
  Independentsoft.SipResponse
    More...

Namespace:  Independentsoft.Sip
Assembly:  Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntax
public class Response

The Response type exposes the following members.

Constructors
  NameDescription
Public methodResponse
Initializes a new instance of the Response class.
Top
Properties
  NameDescription
Public propertyBody
Gets or sets response body text.
Public propertyCallID
Gets or sets Call-ID header field. The Call-ID header field is mandatory in all responses. It is used to uniquely identify a call between two clients.
Public propertyContact
Gets or sets Contact header field. The Contact header field is used to convey a URI that identifies the response originator.
Public propertyContentLength
Gets Content-Length header field. The Content-Length header field indicates the size of the response body. If no body is present in a request, then the Content-Length header field value must be zero.
Public propertyContentType
Gets or sets Content-Type header field. The Content-Type header field is used to specify the Internet media type in the response body. Media types have the familiar form type/sub-type. If this header field is not present, application/sdp is assumed.
Public propertyCSeq
Gets CSeq header field. The CSeq header field is a required header field in every response. The CSeq header field contains a number that is same as in appropirate request.
Public propertyDescription
Gets or sets response description.
Public propertyFrom
Gets or sets From header field.
Public propertyHeader
Gets response header.
Public propertySent
Indicates if response is sent or received.
Public propertySessionDescription
Returns the response body as SessionDescription if Content-Type is "application/sdp", otherwise returns null. Sets response body and sets Content-Type as "application/sdp".
Public propertySipVersion
Gets SIP protocol version number.
Public propertyStatusCode
Gets or sets response status code.
Public propertyTo
Gets or sets To header field.
Public propertyVia
Gets or sets Via header field. The Via header field indicates the path taken by the request so far and indicates the path that should be followed in routing responses. The "branch" parameter in the Via header field values serves as a transaction identifier, and is used by proxies to detect loops. The Via header field value contains the transport protocol used to send the message, the client's host name or network address, and possibly the port number at which it wishes to receive responses. The Via header field value can also contain parameters such as "maddr", "ttl", "received" and "branch".
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberParse
Converts the specified string representation of a response to its Response equivalent.
Public methodToString
Converts the value of this instance to its equivalent string representation.
(Overrides ObjectToString.)
Top
See Also
Inheritance Hierarchy
SystemObject
  Independentsoft.SipResponse
    Independentsoft.Sip.ResponsesAccepted
    Independentsoft.Sip.ResponsesBadEvent
    Independentsoft.Sip.ResponsesBadExtension
    Independentsoft.Sip.ResponsesBadRequest
    Independentsoft.Sip.ResponsesBusyHere
    Independentsoft.Sip.ResponsesCallIsBeingForwarded
    Independentsoft.Sip.ResponsesCallQueued
    Independentsoft.Sip.ResponsesDecline
    Independentsoft.Sip.ResponsesForbidden
    Independentsoft.Sip.ResponsesMethodNotAllowed
    Independentsoft.Sip.ResponsesNotAcceptable
    Independentsoft.Sip.ResponsesNotAcceptableHere
    Independentsoft.Sip.ResponsesOK
    Independentsoft.Sip.ResponsesRequestPending
    Independentsoft.Sip.ResponsesRequestTerminated
    Independentsoft.Sip.ResponsesRinging
    Independentsoft.Sip.ResponsesSessionProgress
    Independentsoft.Sip.ResponsesTrying
    Independentsoft.Sip.ResponsesUnauthorized
    Independentsoft.Sip.ResponsesUnsupportedMediaType
    Independentsoft.Sip.ResponsesUnsupportedURIScheme